{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Appendix C/AppendixC.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Oct 2018, 08:30:14

{com}. do "/Users/erzeno/Dropbox/Beste/Appendix C/TableC1.do"
{txt}
{com}. ///Project: Introducing GLP Paper Table 5 Imputed data
> ///Author: Erzen Oncel 
> ///Date: 31 May 2015 
> ///Stata 13
> 
. 
. ********TABLE 5*************
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. count if power==1
  {res}306
{txt}
{com}. count if power==3
  {res}1,517
{txt}
{com}. count if office1==2
  {res}3,358
{txt}
{com}. count if office1==7
  {res}1,028
{txt}
{com}. count if office1==6
  {res}31,406
{txt}
{com}. count if wealth==0
  {res}29,235
{txt}
{com}. count if wealth==1
  {res}10,787
{txt}
{com}. count if region==1
  {res}8,616
{txt}
{com}. count if region==2
  {res}5,713
{txt}
{com}. count if region==3
  {res}10,360
{txt}
{com}. count if region==4
  {res}11,029
{txt}
{com}. count if region==5
  {res}4,304
{txt}
{com}. count if regime==0
  {res}28,534
{txt}
{com}. count if regime==1
  {res}11,488
{txt}
{com}. /////////Row 1: Age//////////////////
> drop if age<20
{txt}(8 observations deleted)

{com}. drop if age>98
{txt}(0 observations deleted)

{com}. /*gen temp=1
> sort country_nid 
> by country_nid: egen age_persons=total(temp)
> gen percent=age_persons/country_num_persons
> drop if percent<0.75 */
. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta",replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta saved

{com}. //Descriptive
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. count
  {res}40,014
{txt}
{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    53.97099    2.951072    44.3561   62.75069
{txt}
{com}. sort aver_age
{txt}
{com}. //Offices
. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if power==1
{txt}(39,708 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    59.22934    9.007616         38         89
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if power==3
{txt}(38,497 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    58.16941    5.120357   40.83333   71.38308
{txt}
{com}. **Cabinet**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if  office1==2 
{txt}(36,656 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    55.02976    4.141782      38.75         67
{txt}
{com}. **Supreme Court**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if  office1==7 
{txt}(38,986 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        136    61.39378     6.84674   35.96439   84.08803
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if  office1==6
{txt}(8,613 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        145    52.83626    3.135898   43.11883   61.02077
{txt}
{com}. //Wealth
. **nonoecd**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        112    54.11705    2.911071    44.3561   62.75069
{txt}
{com}. count
  {res}112
{txt}
{com}. **oecd**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,227 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         33    53.47526     3.07673   47.72727   60.37454
{txt}
{com}. //Region
. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}  4{com}. keep if region==`x'
{txt}  5{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}  6{com}. sum aver_age
{txt}  7{com}. {c )-}
{txt}(31,401 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         38    54.25556    2.511073    44.3561   59.21241
{txt}(34,302 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         24    54.06861    2.996476    46.7257   59.26687
{txt}(29,656 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         26    54.30659    3.379447   45.86244   62.75069
{txt}(28,985 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         41    52.49075    2.799428   47.72727   60.37454
{txt}(35,712 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         16    56.39646    1.292773   54.48011   58.90072
{txt}
{com}. //Regime
. **Democracy**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if regime==0
{txt}(11,485 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}        113    53.61417    2.766018   45.86244   60.37454
{txt}
{com}. count
  {res}113
{txt}
{com}. **Authoriatarian**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_age_15 05 31.dta"
{txt}
{com}. keep if regime==1
{txt}(28,529 observations deleted)

{com}. collapse (mean) aver_age=age, by(country_nid country)
{txt}
{com}. sum aver_age

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}aver_age {c |}{res}         32      55.231    3.272484    44.3561   62.75069
{txt}
{com}. //////////////////////////////////////////////////////////////////////////////////////////////////////
> ////////Row 2: Male/////////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. sort gender
{txt}
{com}. drop if gender==.
{txt}(0 observations deleted)

{com}. gen male=0
{txt}
{com}. replace male=1 if gender==2 
{txt}(32,050 real changes made)

{com}. gen female=0
{txt}
{com}. replace female=1 if gender==1
{txt}(7,972 real changes made)

{com}. save  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta saved

{com}. //Descriptive
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. count
  {res}40,022
{txt}
{com}. collapse (sum) male=male female=female, by(country country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. gen prcfemale=1-prcmale
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    80.51048    9.284472   52.75591    98.4375
{txt}
{com}. //Offices
. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    88.82699     24.1465          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    88.60363    11.71503   42.85714        100
{txt}
{com}. **cabinet**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    81.73953     14.9071          0        100
{txt}
{com}. **Supreme Court**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        136    81.03053    24.77197          0        100
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        145    79.48379    10.69282         45        100
{txt}
{com}. //Wealth
. **nonoecd**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        112    82.11397    8.704916   52.75591    98.4375
{txt}
{com}. **oecd**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         33    75.06833    9.247609   53.33333   90.50179
{txt}
{com}. //Region
. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}  4{com}. keep if region==`x'
{txt}  5{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}  6{com}. gen total=male+female
{txt}  7{com}. gen prcmale=male/total*100
{txt}  8{com}. sum prcmale
{txt}  9{com}. {c )-}
{txt}(31,406 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         38    80.36796    9.604349   52.75591   95.53571
{txt}(34,309 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         24     78.6663    7.497111   60.51913   90.99099
{txt}(29,662 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         26    83.20596    6.126166   72.26277   97.05882
{txt}(28,993 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         41    76.41279    9.693423   53.33333   91.98312
{txt}(35,718 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         16    89.73544    6.778196   75.10204    98.4375
{txt}
{com}. //Regime
. **Democracy**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}        113    79.64804    9.018796   53.33333   97.05882
{txt}
{com}. **Authoriatarian**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_gender_15 05 31.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. collapse (sum) male=male female=female, by(country_nid)
{txt}
{com}. gen total=male+female
{txt}
{com}. gen prcmale=male/total*100
{txt}
{com}. sum prcmale

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcmale {c |}{res}         32    83.55598    9.709021   52.75591    98.4375
{txt}
{com}. /////////////////////////////////////////////////////////////////////////////////////////////////////////
> ////////Row 3: Married//////////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if marital_status==.
{txt}(0 observations deleted)

{com}. /*gen temp=1
> sort country_nid 
> by country_nid: egen married_persons=total(temp)
> gen percent=married_persons/country_num_persons
> drop if percent<0.75*/
. gen married=0
{txt}
{com}. replace married=1 if marital_status==2
{txt}(33,786 real changes made)

{com}. gen nonmarried=0
{txt}
{com}. replace nonmarried=1 if marital_status==1|marital_status==3|marital_status==4
{txt}(5,157 real changes made)

{com}. sort marital_status
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta saved

{com}. //Descriptive
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. count
  {res}40,022
{txt}
{com}. sort country_nid 
{txt}
{com}. collapse (sum) married=married nonmarried=nonmarried, by(country country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        145    .8630262    .0695657   .6539924          1
{txt}
{com}. //Offices
. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}(1 missing value generated)

{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        144    .8960648      .22594          0          1
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        145    .8828704     .123865   .3333333          1
{txt}
{com}. **cabinet**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        145    .9019372    .0976491         .5          1
{txt}
{com}. **Supreme Court**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}(1 missing value generated)

{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        135    .8783588    .1954781          0          1
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        145     .853537    .0760407   .6266667          1
{txt}
{com}. //Wealth
. **nonoecd**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        112    .8682384    .0749387   .6539924          1
{txt}
{com}. **oecd**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         33    .8453363    .0433549    .751938   .9478417
{txt}
{com}. //Region
. forvalues x=1/5 {c -(}
{txt}  2{com}. clear all
{txt}  3{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}  4{com}. keep if region==`x'
{txt}  5{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}  6{com}. gen total=married+nonmarried
{txt}  7{com}. gen prcmarried=married/total
{txt}  8{com}. sum prcmarried
{txt}  9{com}. {c )-}
{txt}(31,406 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         38     .872036    .0750669   .6539924   .9903846
{txt}(34,309 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         24    .8029095    .0668888   .6795252   .9184549
{txt}(29,662 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         26    .9017904    .0554776       .798          1
{txt}(28,993 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         41    .8466812    .0508524    .751938   .9594017
{txt}(35,718 observations deleted)

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         16    .9106948    .0438845    .839196    .979021
{txt}
{com}. //Regime
. **Democracy**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}        113    .8551372    .0686856   .6539924          1
{txt}
{com}. **Authoriatarian**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_married_15 05 31.dta",
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. collapse (sum) married=married nonmarried=nonmarried, by(country_nid)
{txt}
{com}. gen total=married+nonmarried
{txt}
{com}. gen prcmarried=married/total
{txt}
{com}. sum prcmarried

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}prcmarried {c |}{res}         32    .8908839    .0663865   .7346647   .9883721
{txt}
{com}. /////////////////////////////////////////////////////////////////////////////////////////////////////
> ////////Row 4: Languages///////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. rename person_lang_all_count langcount
{res}{txt}
{com}. drop if langcount==0
{txt}(0 observations deleted)

{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta",replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta saved

{com}. 
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. count
  {res}40,022
{txt}
{com}. sort country_nid
{txt}
{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        145    1.809456    .7593468          1   4.403509
{txt}
{com}. **apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta" 
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        145    2.086011    1.015569          1          5
{txt}
{com}. **next 10**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        145    1.992719    .8239322          1   5.222222
{txt}
{com}. **cabinet**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        145    2.014074     .835814          1   5.083333
{txt}
{com}. **Supreme court**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        136     1.80495    .9213652          1        5.5
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        145    1.746018    .7518109          1   4.224719
{txt}
{com}. **Wealth**
. *rich*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         33    1.615626    .7420312          1   4.403509
{txt}
{com}. *poor*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        112    1.866567    .7581797          1   4.106306
{txt}
{com}. **regime**
. *dem*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}        113    1.802429    .7732478          1   4.403509
{txt}
{com}. count
  {res}113
{txt}
{com}. *auto*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. collapse (mean) langcount=langcount, by (country country_nid)
{txt}
{com}. sum langcount

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         32    1.834272    .7193197   1.004785   4.106306
{txt}
{com}. count
  {res}32
{txt}
{com}. *regions
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/langcount_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (mean) langcount=langcount, by (region country_nid)
{txt}
{com}. by region, sort: sum langcount

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         38    2.053829    .8656033          1   4.106306

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         20    1.333895    .3348809          1   2.056452

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         22    2.078973      .65419   1.112205   3.772727

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         18    2.064058    .8604058    1.07963   4.057804

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}langcount {c |}{res}         14    1.531545    .4026374   1.004785   2.121399

{txt}
{com}. ///////////////////////////////////////////////////////////////////////////////
> ////////Row 5: Educational Attainment/////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. count
  {res}40,022
{txt}
{com}. tab edulevel

                          {txt}edulevel {c |}      Freq.     Percent        Cum.
{hline 35}{c +}{hline 35}
                           Primary {c |}{res}        473        1.18        1.18
{txt}                         Secondary {c |}{res}      2,932        7.33        8.51
{txt}  Higher Education, Non University {c |}{res}      4,221       10.55       19.05
{txt}                University/College {c |}{res}     17,035       42.56       61.62
{txt}Post-Graduate(anything except PHD) {c |}{res}     10,201       25.49       87.11
{txt}                               PhD {c |}{res}      5,160       12.89      100.00
{txt}{hline 35}{c +}{hline 35}
                             Total {c |}{res}     40,022      100.00
{txt}
{com}. drop if edulevel==0
{txt}(0 observations deleted)

{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta saved

{com}. count
  {res}40,022
{txt}
{com}. collapse (mean) edulevel=edulevel, by(country country_nid) //to see number of countries
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.246275    .3002615   3.415385   4.856322
{txt}
{com}. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.418618    1.015683          1          6
{txt}
{com}. **Top ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.482125    .4078201        3.4        5.5
{txt}
{com}. **cabinet**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.585984    .3935987   3.238095       5.32
{txt}
{com}. **court**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        136    4.760252    .6347673          2          6
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        145    4.142846    .3281689   3.235294   4.832335
{txt}
{com}. **Wealth
. // nonOECD
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        112     4.25326    .3082905   3.415385   4.856322
{txt}
{com}. // OECD
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         33    4.222568    .2743636   3.616822    4.85479
{txt}
{com}. **Regime**
. // Democracy
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}        113    4.254524    .2776322   3.559727    4.85479
{txt}
{com}. // Autocracy
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. collapse (mean) edulevel =edulevel, by(country country_nid)
{txt}
{com}. sum edulevel

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         32    4.217147    .3730799   3.415385   4.856322
{txt}
{com}. // Regions
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/dataedu_mi8.dta"
{txt}
{com}. collapse (mean) edulevel =edulevel, by(region country_nid)
{txt}
{com}. by region, sort: sum edulevel

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         38     4.07178    .2825465   3.415385   4.556391

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         24      4.2965     .274872   3.796562   4.836957

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         26    4.318389    .3270653   3.661765   4.856322

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         41    4.309419      .29047   3.616822    4.85479

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}edulevel {c |}{res}         16    4.306372    .2109955      3.768   4.702381

{txt}
{com}. //////////////////////////////////////////////////////////////////////////////
> ////////Row 6: Edu Abroad////////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if person_abroad==.
{txt}(0 observations deleted)

{com}. gen eduabroad=0
{txt}
{com}. replace eduabroad=1 if person_abroad==1
{txt}(7,740 real changes made)

{com}. gen eduhome=0
{txt}
{com}. replace eduhome=1 if person_abroad==0
{txt}(32,282 real changes made)

{com}. sort country_nid
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta", replace
{txt}(note: file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta not found)
file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta saved

{com}. //Descriptive
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. count
  {res}40,022
{txt}
{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    24.48348    15.96716   .8247423   76.62337
{txt}
{com}. //Offices
. **Apex**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    37.90566    42.06321          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    34.39772     23.5798          0         90
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    33.92231    23.17273          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        136     29.4022    34.87884          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    21.36912    14.73412          0       82.5
{txt}
{com}. sort total
{txt}
{com}. **Wealth/Region/Regime**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduabroad_mi8.dta"
{txt}
{com}. collapse (sum) eduabroad=eduabroad eduhome=eduhome, by (wealth regime region country_nid)
{txt}
{com}. gen total=eduabroad+eduhome
{txt}
{com}. gen prcabroad=eduabroad/total*100
{txt}
{com}. sum prcabroad

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        145    24.48348    15.96716   .8247423   76.62337
{txt}
{com}. sort country_nid
{txt}
{com}. sum prcabroad if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        112    27.71546     16.0888   .9259259   76.62337
{txt}
{com}. sum prcabroad if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         33    13.51434    9.420731   .8247423   44.16667
{txt}
{com}. sum prcabroad if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}        113     22.6285    15.21514   .8247423   76.62337
{txt}
{com}. sum prcabroad if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         32    31.03386    17.06053   .9259259   72.94118
{txt}
{com}. by region, sort: sum  prcabroad

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         38    31.65754    13.68327   15.54054   69.40298

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         24    18.51863    10.20933   .8247423   36.95652

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         26     23.9353    16.27509   3.690037   66.17647

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         41    16.32467     14.0352   .9174312   76.62337

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcabroad {c |}{res}         16    38.19009    16.99786   10.75269   72.94118

{txt}
{com}. 
. ////////////////////Row 7: Edu in West////////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. sort person_nid 
{txt}
{com}. drop if person_eduwest==.
{txt}(0 observations deleted)

{com}. gen eduwest=0
{txt}
{com}. replace eduwest=1 if person_eduwest==1
{txt}(17,259 real changes made)

{com}. gen eduhome=0
{txt}
{com}. replace eduhome=1 if person_eduwest==0
{txt}(22,763 real changes made)

{com}. sort country_nid
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta saved

{com}. //Descriptive
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. count
  {res}40,022
{txt}
{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    47.32439    28.19778   3.947368   99.44444
{txt}
{com}. sort prcwest
{txt}
{com}. //Offices
. **Apex**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    56.62681     43.4023          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    54.43859    31.23265          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    53.32739    31.43629          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        136    49.45101    41.53024          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (country country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sum prcwest

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        145    46.17383    28.56949          0   99.33334
{txt}
{com}. **Wealth/Region/Regime**
. clear all 
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. collapse (sum) eduwest=eduwest eduhome=eduhome, by (regime region wealth country_nid)
{txt}
{com}. gen total=eduwest+eduhome
{txt}
{com}. gen prcwest=eduwest/total*100
{txt}
{com}. sort country_nid
{txt}
{com}. sum prcwest if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        112    40.73667     23.5092   3.947368   99.44444
{txt}
{com}. sum prcwest if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         33    69.68271    31.51968   9.248555   99.17355
{txt}
{com}. sum prcwest if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}        113    50.43752    29.82271   3.947368   99.17355
{txt}
{com}. sum prcwest if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         32    36.33115    17.89035   8.290155   99.44444
{txt}
{com}. by region, sort: sum  prcwest

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         38    41.72101    13.94969   15.67568      71.25

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         24    27.14998    23.98748   3.947368   98.96907

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         26    32.19579    22.25084   8.290155   92.71844

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         41    79.60281    20.71859   9.248555   99.44444

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcwest {c |}{res}         16    32.76457    9.976413    10.9319    48.4375

{txt}
{com}. /////////////////////////////////////
> ///////Row 8: Tenure///////////////////
> clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if person_office_start_year==0
{txt}(0 observations deleted)

{com}. drop if person_office_start_year>2013
{txt}(0 observations deleted)

{com}. drop if person_office_start_year<1955
{txt}(0 observations deleted)

{com}. gen tenure=2013-person_office_start_year
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta saved

{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta", clear
{txt}
{com}. count
  {res}40,022
{txt}
{com}. sort country_nid
{txt}
{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145    5.516103    1.921851   1.745342    10.9713
{txt}
{com}. **Apex elites
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145    7.379921    6.253537          1         43
{txt}
{com}. //Next 10 elites
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145    6.584468    2.775238   1.909091   17.09091
{txt}
{com}. **cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145    4.257674    2.017806          1      11.45
{txt}
{com}. **Supreme court
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        136    6.956937    3.409924          1         22
{txt}
{com}. **MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        145    5.432956    2.341045          1   15.43243
{txt}
{com}. **Wealth
. *rich
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        112     5.37238    1.821591   1.745342   9.741333
{txt}
{com}. *poor
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         33    6.003891    2.189323   2.578947    10.9713
{txt}
{com}. **Regime
. *Demo
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}        113    5.390883    1.887329   1.946667    10.9713
{txt}
{com}. *auto
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. collapse (mean) tenure=tenure, by(country country_nid)
{txt}
{com}. sum tenure

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         32    5.958288    2.007176   1.745342   9.741333
{txt}
{com}. //regions
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/datatenure_mi8.dta"
{txt}
{com}. collapse (mean) tenure=tenure, by( region country_nid)
{txt}
{com}. by region, sort: sum tenure

{txt}{hline}
-> region = Africa

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         38    4.974771     2.10282   1.745342   8.537815

{txt}{hline}
-> region = Americas

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         24    5.478163    2.052692   2.927083   10.62474

{txt}{hline}
-> region = Asia

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         26    6.010471    1.586841   3.453757   9.248176

{txt}{hline}
-> region = Europe

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         41    5.561804    1.719992   2.578947    10.9713

{txt}{hline}
-> region = MENA

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}tenure {c |}{res}         16    5.938224    2.154029   2.496416   9.741333

{txt}
{com}. 
{txt}end of do-file

{com}. do "/Users/erzeno/Dropbox/Beste/Appendix C/TableC2.do"
{txt}
{com}. ///Project: Introducing GLP Paper Table 6
> ///Author: Erzen Oncel 
> ///Date: 31 May 2015 
> ///Stata 13
> 
. *************************TABLE 6***********************************************
. 
. **********************************English***************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. count if power==1
  {res}306
{txt}
{com}. count if power==3
  {res}1,517
{txt}
{com}. count if office1==2
  {res}3,358
{txt}
{com}. count if office1==7
  {res}1,028
{txt}
{com}. count if office1==6
  {res}31,406
{txt}
{com}. count if wealth==0
  {res}29,235
{txt}
{com}. count if wealth==1
  {res}10,787
{txt}
{com}. count if region==1
  {res}8,616
{txt}
{com}. count if region==2
  {res}5,713
{txt}
{com}. count if region==3
  {res}10,360
{txt}
{com}. count if region==4
  {res}11,029
{txt}
{com}. count if region==5
  {res}4,304
{txt}
{com}. count if regime==0
  {res}28,534
{txt}
{com}. count if regime==1
  {res}11,488
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(39,877 observations deleted)

{com}. count if wealth==0
  {res}112
{txt}
{com}. count if wealth==1
  {res}33
{txt}
{com}. count if region==1
  {res}38
{txt}
{com}. count if region==2
  {res}24
{txt}
{com}. count if region==3
  {res}26
{txt}
{com}. count if region==4
  {res}41
{txt}
{com}. count if region==5
  {res}16
{txt}
{com}. count if regime==0
  {res}113
{txt}
{com}. count if regime==1 
  {res}32
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen eng=0
{txt}
{com}. replace eng=1 if english==1
{txt}(10,782 real changes made)

{com}. gen noeng=0
{txt}
{com}. replace noeng=1 if english==0
{txt}(29,240 real changes made)

{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta saved

{com}. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta", replace
{txt}
{com}. count
  {res}40,022
{txt}
{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        145    34.53364    35.70035          0        100
{txt}
{com}. gen avgeng=r(mean)
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/english.dta",replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/english.dta saved

{com}. 
. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        145     54.8555    45.18438          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        145     46.6599    35.69848          0        100
{txt}
{com}. **Cabinet**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        145    47.26663    37.89996          0        100
{txt}
{com}. **Supreme Court**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        136     33.2441    41.73273          0        100
{txt}
{com}. **MPs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/englishlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) eng=eng noeng=noeng, by( country country_nid)
{txt}
{com}. gen total=eng+noeng
{txt}
{com}. gen prceng=eng/total*100
{txt}
{com}. sum prceng

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        145    31.42016    35.99847          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/english.dta"
{txt}
{com}. merge 1:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prceng if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        112    31.52948    34.42484          0        100
{txt}
{com}. sum prceng if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         33    44.72957    38.54627          0        100
{txt}
{com}. sum prceng if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}        113    37.08942     36.3573          0        100
{txt}
{com}. sum prceng if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         32    25.50853    32.19797   .4784689   98.83721
{txt}
{com}. by region, sort: sum prceng 

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         38    34.04856    39.33306          0        100

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         24    28.37028    38.22155          0        100

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         26    37.45168    37.35246   .6116208   99.71098

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         41    38.89426     32.7849   .4587156        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prceng {c |}{res}         16    29.01482    28.75689   .4784689    82.8125

{txt}
{com}. 
. ***********************************French**************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen fren=0
{txt}
{com}. replace fren=1 if french==1
{txt}(6,951 real changes made)

{com}. gen nofren=0
{txt}
{com}. replace nofren=1 if french==0
{txt}(33,071 real changes made)

{com}. //collapse (sum) french=nofrench, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sort fren
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        145    19.69049    32.90461          0        100
{txt}
{com}. gen avgfrench=r(mean)
{txt}
{com}. sort prcfrench
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/french.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/french.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        145    20.04105    36.21317          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        145    22.44951    33.89927          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        145    22.39833    35.08427          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        136    20.02796    35.68577          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/frenchlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) fren=fren nofren=nofren, by( country country_nid)
{txt}
{com}. gen total=fren+nofren
{txt}
{com}. gen prcfrench=fren/total*100
{txt}
{com}. sum prcfrench

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        145    19.20868    32.87789          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/french.dta"
{txt}
{com}. merge 1:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcfrench if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        112    20.94361    34.49141          0        100
{txt}
{com}. sum prcfrench if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         33     15.4375    26.85961          0        100
{txt}
{com}. sum prcfrench if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}        113    17.67112    30.75216          0        100
{txt}
{com}. sum prcfrench if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         32    26.82142    39.31053   .2237137        100
{txt}
{com}. by region, sort: sum prcfrench

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         38    45.89374    44.27086          0        100

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         24    4.922965    10.93754          0   53.80117

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         26     3.49952    6.238399   .2237137   33.16832

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         41    13.71882    23.44587          0        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}prcfrench {c |}{res}         16    21.22181    34.68025    .297619    96.7347

{txt}
{com}. 
. *************************************Spanish***********************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen span=0
{txt}
{com}. replace span=1 if spanish==1
{txt}(5,676 real changes made)

{com}. gen nospan=0
{txt}
{com}. replace nospan=1 if spanish==0
{txt}(34,346 real changes made)

{com}. //collapse (sum) span=nospan, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. collapse (sum) span=span nospan=nospan, by (country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        145    16.19638    32.84021          0        100
{txt}
{com}. gen avgspan=r(mean)
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanish.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanish.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        145    16.37603    33.12133          0        100
{txt}
{com}. **Next 10**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        145    17.54578    33.07422          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. sort span
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        145      15.992    33.09002          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        136    16.70068    35.17446          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanishlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) span=span nospan=nospan, by( country country_nid)
{txt}
{com}. gen total=span+nospan
{txt}
{com}. gen prcspan=span/total*100
{txt}
{com}. sum prcspan

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        145    16.47678    32.98156          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/spanish.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcspan if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        112    18.32969    34.90145          0        100
{txt}
{com}. sum prcspan if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         33    8.956045    23.61874          0        100
{txt}
{com}. sum prcspan if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}        113    19.37424    35.45372          0        100
{txt}
{com}. sum prcspan if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         32    4.974558    17.36694          0   99.59016
{txt}
{com}. by region, sort: sum prcspan

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         38    7.159016    17.06098          0        100

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         24    73.19964    42.22207   1.086957        100

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         26    2.528555    2.329051          0   8.401084

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         41    5.406471    15.34757          0    99.2228

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcspan {c |}{res}         16    2.014599    1.520003          0   5.759162

{txt}
{com}. 
. ************************************Arabic*************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen arab=0
{txt}
{com}. replace arab=1 if arabic==1
{txt}(4,795 real changes made)

{com}. gen noarab=0
{txt}
{com}. replace noarab=1 if arabic==0
{txt}(35,227 real changes made)

{com}. //collapse (sum) arab=noarab, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. collapse (sum) arab=arab noarab=noarab, by (country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        145    12.76381    30.16535          0        100
{txt}
{com}. gen avgarab=r(mean)
{txt}
{com}. sort prcarab
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabic.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabic.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        145    10.82027    29.01125          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        145    13.47793    29.69295          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        145    12.89253    30.60873          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        136    12.58673    31.58608          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabiclang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) arab=arab noarab=noarab, by( country country_nid)
{txt}
{com}. gen total=arab+noarab
{txt}
{com}. gen prcarab=arab/total*100
{txt}
{com}. sum prcarab

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        145    12.97646    30.21356          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/arabic.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcarab if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        112    16.00386    33.59647          0        100
{txt}
{com}. sum prcarab if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         33    1.767271    4.250263          0   19.89529
{txt}
{com}. sum prcarab if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}        113    6.367995    20.06327          0        100
{txt}
{com}. sum prcarab if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         32    35.34902    45.79172          0        100
{txt}
{com}. by region, sort: sum prcarab

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         38    10.32196    24.26146          0   99.49495

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         24    1.082056    1.837371          0   7.222222

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         26    1.559514     1.47346          0   5.307262

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         41    1.180696      1.9844          0    8.86076

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcarab {c |}{res}         16    83.97453    32.20999   14.15771        100

{txt}
{com}. 
. *************************************Chinese***********************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen chin=0
{txt}
{com}. replace chin=1 if chinese==1
{txt}(3,840 real changes made)

{com}. gen nochin=0
{txt}
{com}. replace nochin=1 if chinese==0
{txt}(36,182 real changes made)

{com}. //collapse (sum) chin =no chin, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        145    2.740364    10.79318          0   99.61649
{txt}
{com}. gen avgchin=r(mean)
{txt}
{com}. sort prcchin
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chinese.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chinese.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        145    2.799672    13.95078          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        145    2.894449     11.5251          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        145    2.504248    11.48189          0   98.61111
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        136    2.228111    11.65478          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chineselang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) chin=chin nochin=nochin, by (country country_nid)
{txt}
{com}. gen total= chin+nochin
{txt}
{com}. gen prcchin= chin/total*100
{txt}
{com}. sum prcchin

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        145    2.900909    10.78712          0   99.69157
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/chinese.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcchin if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        112    3.335591    12.20412          0   99.61649
{txt}
{com}. sum prcchin if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         33       .7202     1.45978          0   7.253886
{txt}
{com}. sum prcchin if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}        113    2.317128    8.048636          0   80.16529
{txt}
{com}. sum prcchin if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         32    4.234917    17.43912          0   99.61649
{txt}
{com}. by region, sort: sum  prcchin

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         38    1.899349    2.543084          0   9.803922

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         24    1.122727    1.861813          0   8.333333

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         26    9.181137    24.44501          0   99.61649

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         41    .9403449    2.030041          0   10.54852

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}prcchin {c |}{res}         16    1.310527    1.105169          0   4.411765

{txt}
{com}. 
. *************************************Russian***********************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen rus=0
{txt}
{com}. replace rus =1 if russian==1
{txt}(3,816 real changes made)

{com}. gen norus=0
{txt}
{com}. replace norus=1 if russian==0
{txt}(36,206 real changes made)

{com}. //collapse (sum) rus=norus, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        145    12.04057    27.70287          0        100
{txt}
{com}. gen avgrus=r(mean)
{txt}
{com}. sort prcrus
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russian.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russian.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        145    14.12151    32.72415          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        145     13.8184    29.99474          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        145    12.69457    29.14082          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        136     9.57375    27.14861          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russianlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) rus=rus norus=norus, by (country country_nid)
{txt}
{com}. gen total= rus+norus
{txt}
{com}. gen prcrus=rus/total*100
{txt}
{com}. sum prcrus

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        145    11.93932    27.45688          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/russian.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcrus if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        112    13.79277    29.93163          0        100
{txt}
{com}. sum prcrus if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         33      6.0937     17.2813          0   96.69421
{txt}
{com}. sum prcrus if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}        113    11.14645    25.95988          0        100
{txt}
{com}. sum prcrus if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         32    15.19791    33.42049          0        100
{txt}
{com}. by region, sort: sum  prcrus

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         38    1.927698    2.987534          0   13.72549

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         24    1.858112    2.732622          0   12.22222

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         26    30.34382    41.46771          0        100

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         41    19.85234    34.48074          0        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcrus {c |}{res}         16    1.571871    2.877109          0   12.04188

{txt}
{com}. 
. *************************************German************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen ger=0
{txt}
{com}. replace ger =1 if german==1
{txt}(2,401 real changes made)

{com}. gen noger=0
{txt}
{com}. replace noger=1 if german==0
{txt}(37,621 real changes made)

{com}. //collapse (sum) ger=noger, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. replace prcger =round(prcger)
{txt}(113 real changes made)

{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        145    5.944828    16.44721          0        100
{txt}
{com}. gen avgger=r(mean)
{txt}
{com}. sort prcger
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/german.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/german.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        145    7.471264    22.90033          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        145    6.616388    16.75766          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        145    6.184738    17.66136          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        136    4.673993    17.37351          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/germanlang.dta",
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) ger=ger noger=noger, by (country country_nid)
{txt}
{com}. gen total=ger+noger
{txt}
{com}. gen prcger=ger/total*100
{txt}
{com}. sum prcger

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        145    6.204395    16.55477          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/german.dta",
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcger if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        112    2.464286    3.387653          0         18
{txt}
{com}. sum prcger if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         33    17.75758    31.48316          0        100
{txt}
{com}. sum prcger if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}        113    7.247788    18.42433          0        100
{txt}
{com}. sum prcger if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         32     1.34375    1.450459          0          6
{txt}
{com}. by region, sort: sum  prcger

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         38    1.947368    2.710813          0         12

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         24    1.083333    1.815792          0          8

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         26    1.884615    2.103843          0          7

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         41    16.68293    28.19791          0        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcger {c |}{res}         16      1.8125    2.400521          0         10

{txt}
{com}. 
. ********************************Portuguese*************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen por=0
{txt}
{com}. replace por =1 if portuguese==1
{txt}(1,852 real changes made)

{com}. gen nopor=0
{txt}
{com}. replace nopor=1 if portuguese==0
{txt}(38,170 real changes made)

{com}. //collapse (sum) por=nopor, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        145    4.796059    17.72173          0        100
{txt}
{com}. gen avgpor=r(mean)
{txt}
{com}. sort prcpor
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/portuguese.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/portuguese.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        145    5.655172    20.98307          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        145    5.487428    19.23204          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        145    4.974617    18.48482          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        136    5.114595    20.14987          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/porlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) por=por nopor=nopor, by (country country_nid)
{txt}
{com}. gen total=por+nopor
{txt}
{com}. gen prcpor=por/total*100
{txt}
{com}. sum prcpor

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        145    4.796548    17.47277          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/portuguese.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcpor if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        112    5.008216    17.91498          0        100
{txt}
{com}. sum prcpor if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         33    4.076011    17.30007          0        100
{txt}
{com}. sum  prcpor if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}        113    5.184291    18.67345          0        100
{txt}
{com}. sum  prcpor if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         32    3.425115    14.01991          0         80
{txt}
{com}. by region, sort: sum  prcpor

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         38    8.592851    25.17686          0   99.25373

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         24    5.822717    20.18235          0        100

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         26    2.422022    8.343332          0   43.18182

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         41    3.505298    15.54148          0        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}prcpor {c |}{res}         16    1.404077    1.388471          0     4.6875

{txt}
{com}. ************************************Other**************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(person_lang_all)
{txt}(0 observations deleted)

{com}. gen oth=0
{txt}
{com}. replace oth =1 if otherlang==1
{txt}(27,333 real changes made)

{com}. gen nooth=0
{txt}
{com}. replace nooth=1 if otherlang==0
{txt}(12,689 real changes made)

{com}. //collapse (sum) por=nopor, by(country_nid)
. save"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta saved

{com}. ///calculate mean SD min max
> clear all 
{txt}
{com}. use"/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        145    74.57831    37.59615          0        100
{txt}
{com}. gen avgoth=r(mean)
{txt}
{com}. sort prcother
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlanguage.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlanguage.dta saved

{com}. **Apex**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        145    74.48276    41.01599          0        100
{txt}
{com}. **Top Ten**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        145    75.10365    37.26291          0        100
{txt}
{com}. **Cabinet**
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        145    74.40407    38.25206          0        100
{txt}
{com}. **Supreme Court**
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        136    73.49101    42.07798          0        100
{txt}
{com}. **MPs**
. clear all 
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlang.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. collapse (sum) oth=oth nooth=nooth, by (country country_nid)
{txt}
{com}. gen total=oth+nooth
{txt}
{com}. gen prcother=oth/total*100
{txt}
{com}. sum prcother

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        145    75.00877    37.48923          0        100
{txt}
{com}. **Wealth/Region/Regime**
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/VariousData/Data/Dataset/glp_mi/otherlanguage.dta"
{txt}
{com}. merge m:1  country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta", keep(match)
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. sum prcother if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        112    75.33204    36.69756          0        100
{txt}
{com}. sum prcother if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         33    72.02022    40.99361   2.457757        100
{txt}
{com}. sum  prcother if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}        113    80.05882    33.80229          0        100
{txt}
{com}. sum  prcother if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         32    55.22527    44.06364   1.315789        100
{txt}
{com}. by region, sort: sum  prcother

{txt}{hline}
-> region = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         38    78.13132    29.10814   7.553957        100

{txt}{hline}
-> region = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         24    77.36216    38.89123          0        100

{txt}{hline}
-> region = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         26    85.40694    30.53659   9.708738        100

{txt}{hline}
-> region = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         41    82.41926    33.71577   2.457757        100

{txt}{hline}
-> region = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}prcother {c |}{res}         16    24.27522    38.20849   .8163266        100

{txt}
{com}. 
{txt}end of do-file

{com}. do "/Users/erzeno/Dropbox/Beste/Appendix C/TableC3.do"
{txt}
{com}. ///Project: Introducing GLP Paper Table 7 IMputed data
> ///Author: Erzen Oncel 
> ///Date: 31 May 2015 
> ///Stata 13
> 
. *************************TABLE 7***********************************************
. clear all
{txt}
{com}. use  "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/eduwest_mi8.dta"
{txt}
{com}. 
. /*1     "agronomy"
> 2"economics / business / management"
> 3"engineering"
> 4"mathematics / computer science"
> 5"biology/chemistry/physics"
> 6"humanities"
> 7"social sciences"
> 8"law"
> 9"medicine"
> 10"military"
> 11"other"*/
. gen temp=1
{txt}
{com}. drop if edumajor1==0
{txt}(0 observations deleted)

{com}. count
  {res}40,022
{txt}
{com}. count if power==1
  {res}306
{txt}
{com}. count if power==3
  {res}1,517
{txt}
{com}. count if office1==2
  {res}3,358
{txt}
{com}. count if office1==7
  {res}1,028
{txt}
{com}. count if office1==6
  {res}31,406
{txt}
{com}. count if wealth==0
  {res}29,235
{txt}
{com}. count if wealth==1
  {res}10,787
{txt}
{com}. count if region==1
  {res}8,616
{txt}
{com}. count if region==2
  {res}5,713
{txt}
{com}. count if region==3
  {res}10,360
{txt}
{com}. count if region==4
  {res}11,029
{txt}
{com}. count if region==5
  {res}4,304
{txt}
{com}. count if regime==0
  {res}28,534
{txt}
{com}. count if regime==1
  {res}11,488
{txt}
{com}. tab edumajor1

                    {txt}edumajor1 {c |}      Freq.     Percent        Cum.
{hline 30}{c +}{hline 35}
                     Agronomy {c |}{res}      1,641        4.10        4.10
{txt}Economics/Business/Management {c |}{res}      5,439       13.59       17.69
{txt}                  Engineering {c |}{res}      4,053       10.13       27.82
{txt} mathematics/computer science {c |}{res}        885        2.21       30.03
{txt}    biology/chemistry/physics {c |}{res}      1,591        3.98       34.00
{txt}                   humanities {c |}{res}      3,988        9.96       43.97
{txt}              social sciences {c |}{res}      4,680       11.69       55.66
{txt}                          law {c |}{res}      7,493       18.72       74.38
{txt}                     medicine {c |}{res}      2,859        7.14       81.53
{txt}                     military {c |}{res}      1,291        3.23       84.75
{txt}                        other {c |}{res}      6,102       15.25      100.00
{txt}{hline 30}{c +}{hline 35}
                        Total {c |}{res}     40,022      100.00
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta saved

{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(39,877 observations deleted)

{com}. count
  {res}145
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(161 observations deleted)

{com}. count
  {res}145
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,372 observations deleted)

{com}. count
  {res}145
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,213 observations deleted)

{com}. count
  {res}145
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(31,261 observations deleted)

{com}. count
  {res}145
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(892 observations deleted)

{com}. count
  {res}136
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(29,123 observations deleted)

{com}. count
  {res}112
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,754 observations deleted)

{com}. count
  {res}33
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(28,421 observations deleted)

{com}. count
  {res}113
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(11,456 observations deleted)

{com}. count
  {res}32
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if region==1
{txt}(31,406 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,578 observations deleted)

{com}. count
  {res}38
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if region==2
{txt}(34,309 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,689 observations deleted)

{com}. count
  {res}24
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if region==3
{txt}(29,662 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,334 observations deleted)

{com}. count
  {res}26
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if region==4
{txt}(28,993 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,988 observations deleted)

{com}. count
  {res}41
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if region==5
{txt}(35,718 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,288 observations deleted)

{com}. count
  {res}16
{txt}
{com}. 
. **agronomy**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(38381 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=agron/alldegrees*100
{txt}(38,381 missing values generated)

{com}. keep if agron<.
{txt}(38,381 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,501 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               5
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               5{txt}  (_merge==2)

{col 5}matched{col 30}{res}             140{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(5 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    4.230279    2.466094          0   11.85185
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}4.230279331371702
                {txt}r(Var) =  {res}6.081617775616159
                 {txt}r(sd) =  {res}2.466093626693066
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}11.85185146331787
                {txt}r(sum) =  {res}613.3905030488968
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.708533    2.534204   .5235602   11.31222
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    4.384008    2.435867          0   11.85185
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    3.982027    2.435907          0   11.85185
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32     5.10692    2.407172   1.630435   11.76471
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    4.961095    2.059616          0   9.302325
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    3.747749    1.983568   .9009009   7.185629
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    4.693317    3.077903          0   11.76471
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.929928    2.775383          0   11.85185
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16      3.2356    1.469012   .5235602   6.220096
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(296 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(296 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(296 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.085684    8.716512          0         50
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(1473 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(1,473 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,473 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145      2.5434    6.404023          0   45.45454
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(3238 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(3,238 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,238 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.439564    4.626753          0   21.05263
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(1027 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(1,027 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,027 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    .1470588    1.714986          0         20
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen agron=total(temp) if edumajor1==1
{txt}(30013 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=agron/alledu*100
{txt}(30,013 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,013 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    4.784744    2.877339          0   13.72549
{txt}
{com}. //////////////////////////////
> **econ/bus/man**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(34583 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=econ/alldegrees*100
{txt}(34,583 missing values generated)

{com}. keep if econ<.
{txt}(34,583 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,294 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    14.32971    7.082452   2.309469   33.61345
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}14.32970523834229
                {txt}r(Var) =  {res}50.16112047824942
                 {txt}r(sd) =  {res}7.082451586721183
                {txt}r(min) =  {res}2.309468746185303
                {txt}r(max) =  {res}33.61344528198242
                {txt}r(sum) =  {res}2077.807259559631
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    15.55411    5.713029   7.253886   30.09709
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    13.96894    7.422096   2.309469   33.61345
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    14.86153    6.960992   2.309469   33.61345
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    12.45168    7.298634   2.600473   29.23077
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    11.72823    7.837442   2.600473   33.61345
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    15.39843    6.561182   4.444445   27.04918
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    16.92752    6.867676   5.027933   30.09709
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    15.90216    5.828074   7.253886   32.51748
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    10.65427    6.557332   2.309469   20.78853
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(233 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(233 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(233 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    28.17197    39.12007          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(1243 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(1,243 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,243 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    19.05967    14.33121          0   55.55556
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(2645 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(2,645 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,645 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    21.63406    11.93508          0   57.14286
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(1015 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(1,015 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,015 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    1.606536     9.89083          0        100
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen econ=total(temp) if edumajor1==2
{txt}(27423 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=econ/alledu*100
{txt}(27,423 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(27,423 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    13.27828    8.319038          0         40
{txt}
{com}. ////////////////////////////////////////////
> **engineering**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(35969 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=eng/alldegrees*100
{txt}(35,969 missing values generated)

{com}. keep if eng<.
{txt}(35,969 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,908 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.41632    4.649681   1.156069   33.33333
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}10.41631792907057
                {txt}r(Var) =  {res}21.61953566915525
                 {txt}r(sd) =  {res}4.649681243822554
                {txt}r(min) =  {res}1.156069397926331
                {txt}r(max) =  {res}33.33333206176758
                {txt}r(sum) =  {res}1510.366099715233
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    8.110396    4.314057   1.156069   18.45878
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    11.09574    4.542579    3.26087   33.33333
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    10.12675    4.771012   1.156069   33.33333
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    11.43886    4.099066   4.347826   23.56322
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    9.017524    2.969934       3.75   15.46961
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    10.02979    3.449333    3.26087   16.14583
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    12.00545    7.004389   3.883495   33.33333
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    10.24227    4.854326   1.156069   22.09302
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    12.18191    3.155642   7.329843   18.45878
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(285 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(285 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(285 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.190775    18.43042          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(1369 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(1,369 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,369 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.985954    11.37648          0   66.66666
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(2989 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(2,989 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,989 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.26152    9.970238          0   47.61905
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(1018 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(1,018 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,018 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    1.937347    12.22374          0        100
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen eng=total(temp) if edumajor1==3
{txt}(28131 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=eng/alledu*100
{txt}(28,131 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(28,131 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    11.24627    5.330668   1.801802   39.28571
{txt}
{com}. //////////////////////////////////////////////////
> **math-cs**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(39137 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=math/alldegrees*100
{txt}(39,137 missing values generated)

{com}. keep if math<.
{txt}(39,137 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(751 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              11
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              11{txt}  (_merge==2)

{col 5}matched{col 30}{res}             134{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(11 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.175668    1.301922          0   6.766917
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.175668176494796
                {txt}r(Var) =  {res}1.695001641503708
                 {txt}r(sd) =  {res}1.301922287044702
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}6.76691722869873
                {txt}r(sum) =  {res}315.4718855917454
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.662938    1.022956          0   3.804348
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     2.32674    1.340171          0   6.766917
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.014301    1.297378          0   6.766917
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.745496    1.167158          0   5.741627
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.557776    1.283668          0   6.766917
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.793152    1.441066          0   5.555555
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    2.167474    1.193396          0   4.891304
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     1.83582    1.223544          0   4.958678
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    2.726113    1.189285   .9803922   5.741627
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(295 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(295 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(295 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.091954    13.79409          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(1487 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(1,487 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,487 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     1.87896     4.20262          0         20
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(3297 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(3,297 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,297 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.567703    2.697862          0   13.33333
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(1023 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(1,023 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,023 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     .593063    4.480553          0         50
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen math=total(temp) if edumajor1==4
{txt}(30678 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=math/alledu*100
{txt}(30,678 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,678 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.346721    1.591637          0   7.954545
{txt}
{com}. //////////////////////////////////////////////////
> **bio/chem/phys**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(38431 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=bio/alldegrees*100
{txt}(38,431 missing values generated)

{com}. keep if bio<.
{txt}(38,431 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,450 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               4
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               4{txt}  (_merge==2)

{col 5}matched{col 30}{res}             141{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(4 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.796564    2.029347          0   10.29412
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}3.796563852655476
                {txt}r(Var) =  {res}4.118248672870681
                 {txt}r(sd) =  {res}2.029346858688943
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}10.29411792755127
                {txt}r(sum) =  {res}550.5017586350441
{txt}
{com}. gen percentage1=r(sum)/146
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.428438    1.679069   .9090909   8.290155
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    3.905029    2.116051          0   10.29412
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    3.656089    2.051692          0   10.29412
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    4.292615    1.896233   1.162791   8.695652
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    4.813795    2.220335          0   10.29412
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.743685     1.81068          0   8.620689
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    3.760827    1.670462   .8264463   7.352941
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.299498    1.922297          0   8.290155
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    4.291762    1.583917     1.5625   7.407407
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(296 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(296 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(296 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.942529    14.08475          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(1468 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(1,468 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,468 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.257574    5.442714          0         20
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(3238 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(3,238 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,238 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.334738    4.391559          0         20
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(1021 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(1,021 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,021 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    .5666433    3.087188          0         25
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen bio=total(temp) if edumajor1==5
{txt}(30094 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=bio/alledu*100
{txt}(30,094 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,094 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.943848    2.255155          0   11.53846
{txt}
{com}. //////////////////////////////////////////////////
> **Humanities**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(36034 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=humanities/alldegrees*100
{txt}(36,034 missing values generated)

{com}. keep if humanities<.
{txt}(36,034 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,843 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.692031    4.458313   .8264463   23.86364
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}9.692031067404253
                {txt}r(Var) =  {res}19.87655397847853
                 {txt}r(sd) =  {res}4.458312907196905
                {txt}r(min) =  {res}.8264462947845459
                {txt}r(max) =  {res}23.8636360168457
                {txt}r(sum) =  {res}1405.344504773617
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    10.64166    4.237452   3.046595   19.41748
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    9.412229    4.501355   .8264463   23.86364
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    9.580903    4.839866   .8264463   23.86364
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    10.08445    2.737896   5.511811   16.66667
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38     9.78619    3.709513       1.25   20.68966
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    6.907736    3.830762   1.709402   15.18625
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    11.15469     5.61458   .8264463   23.86364
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    10.07461    4.407333    .990099   21.16788
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    10.28767    3.622178   3.046595   18.84817
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(290 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(290 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(290 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    4.259442      14.514          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(1406 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(1,406 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,406 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    7.129042    8.297543          0   33.33333
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(3078 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(3,078 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,078 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    8.209683    8.008132          0         50
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(987 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(987 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(987 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     2.78973    8.116845          0   47.61905
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen humanities=total(temp) if edumajor1==6
{txt}(28154 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=humanities/alledu*100
{txt}(28,154 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(28,154 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.12623     4.88043          0   24.75248
{txt}
{com}. /////////////////////////////////////////////////
> **Social Sciences**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(35342 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=socsci/alldegrees*100
{txt}(35,342 missing values generated)

{com}. keep if socsci<.
{txt}(35,342 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,536 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             144{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(1 real change made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    11.68863    5.712115          0    25.6927
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}11.68862966299057
                {txt}r(Var) =  {res}32.62825235437265
                 {txt}r(sd) =  {res}5.712114525670214
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}25.69269561767578
                {txt}r(sum) =  {res}1694.851301133633
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    14.08752    5.850321   3.554502    25.6927
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    10.98181    5.499689          0   25.19685
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    11.88782    5.867026          0    25.6927
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    10.98524    5.152166   .5747126   25.19685
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38     12.7311    4.607677        2.5   25.19685
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24     10.6433    5.765514   1.315789   22.26804
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    11.84077    6.729669   .5747126    25.6927
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    11.53657    6.677225          0   24.85549
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    10.92317    3.207449   4.411765   15.78947
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(267 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(267 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(267 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    13.36976    28.10925          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(1309 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(1,309 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,309 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    13.74241    14.90343          0   66.66666
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(2932 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(2,932 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,932 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    12.57996    12.95536          0        100
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(968 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(968 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(968 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    4.703136    15.24645          0        100
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen socsci=total(temp) if edumajor1==7
{txt}(27754 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=socsci/alledu*100
{txt}(27,754 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(27,754 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145       11.82    6.058135          0      31.25
{txt}
{com}. ////////////////////////////////////////
> **law degree**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(32529 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=law/alldegrees*100
{txt}(32,529 missing values generated)

{com}. keep if law<.
{txt}(32,529 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(7,348 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    19.95347    7.714355   5.185185   48.35165
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}19.95347075626768
                {txt}r(Var) =  {res}59.51127125126686
                 {txt}r(sd) =  {res}7.714354882377843
                {txt}r(min) =  {res}5.185184955596924
                {txt}r(max) =  {res}48.35165023803711
                {txt}r(sum) =  {res}2893.253259658813
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    22.23564    7.617296   8.878505   41.81818
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    19.28105    7.646683   5.185185   48.35165
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    21.05728    8.198247   5.185185   48.35165
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    16.05564    3.672507   6.583573   25.53957
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    17.16447    4.651348   10.71429   32.03125
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    27.76463    8.132033   10.65574   46.73913
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    17.11301    6.960011   6.583573   36.42961
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    20.83024    8.170804   5.185185   48.35165
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    17.22964    4.055354   11.00478    25.9887
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(246 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(246 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(246 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    19.12479    31.56887          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. 
. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(1162 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(1,162 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,162 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    23.32723    16.68512          0   72.72727
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(2787 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(2,787 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,787 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    18.33207    11.54265          0   66.66666
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(166 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(166 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(166 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    84.93075    27.31918          0        100
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen law=total(temp) if edumajor1==8
{txt}(26261 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=law/alledu*100
{txt}(26,261 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(26,261 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    16.70469    7.177479          0   43.24324
{txt}
{com}. ///////////////////////////////////////////
> **medicine**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(37163 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=med/alldegrees*100
{txt}(37,163 missing values generated)

{com}. keep if med<.
{txt}(37,163 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(2,714 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    7.199118     3.14842   1.149425   19.48052
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}7.199118333849413
                {txt}r(Var) =  {res}9.91254988439333
                 {txt}r(sd) =  {res}3.148420220426957
                {txt}r(min) =  {res}1.149425268173218
                {txt}r(max) =  {res}19.48052024841309
                {txt}r(sum) =  {res}1043.872158408165
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    5.508551    3.086207   1.652893   13.05684
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    7.697232    3.002272   1.149425   19.48052
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113     7.22613    3.262936   1.652893   19.48052
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    7.103734    2.750936   1.149425   11.52263
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    7.167943    2.533209   2.521008      13.75
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    7.171428    2.462702   3.333333   11.96581
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    6.493655    2.741007   1.149425   10.88561
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    7.378835    4.099341   1.652893   19.48052
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    8.000548     3.32538   2.094241   11.52263
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(290 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(290 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(290 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    5.098522    17.53608          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(1446 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(1,446 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,446 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     4.62103    6.749162          0   33.33333
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(3137 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(3,137 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,137 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.588951    5.886621          0   33.33333
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(1022 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(1,022 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,022 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    .5800653    3.608573          0   33.33333
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen med=total(temp) if edumajor1==9
{txt}(28999 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=med/alledu*100
{txt}(28,999 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(28,999 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    8.048449    4.190132   1.408451       27.5
{txt}
{com}. ///////////////////////////////////////////////////////////
> **military**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen military=total(temp) if edumajor1==10
{txt}(38731 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=military/alldegrees*100
{txt}(38,731 missing values generated)

{com}. keep if military<.
{txt}(38,731 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,152 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               6
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               6{txt}  (_merge==2)

{col 5}matched{col 30}{res}             139{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(6 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.930201     2.12256          0   9.409595
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.930201103666733
                {txt}r(Var) =  {res}4.505261428516921
                 {txt}r(sd) =  {res}2.122560111873612
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}9.409594535827637
                {txt}r(sum) =  {res}424.8791600316763
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.635772    1.279126          0   6.217617
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    3.311595    2.174412          0   9.409595
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.385238    1.661308          0   8.035714
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    4.854602    2.459862   .5181347   9.409595
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.726343    1.999527   .4739336   8.035714
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.110651    1.484912          0   6.830601
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    3.145515    2.255404   .4354136   9.409595
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.723872    1.552064          0   6.851852
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    5.010021    1.937356   1.971326   8.266666
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(282 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(282 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(282 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     8.84953    24.62371          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(1438 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(1,438 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,438 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     5.11545    8.129164          0   45.45454
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(3258 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(3,258 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,258 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.731473     4.16321          0   18.18182
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(1017 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(1,017 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,017 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     .821312    3.725413          0         25
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen mil=total(temp) if edumajor1==10
{txt}(30430 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=mil/alledu*100
{txt}(30,430 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,430 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.687812    2.378538          0         10
{txt}
{com}. /////////////////////////////////////////////
> **other**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(33920 missing values generated)

{com}. by country_nid: egen alldegrees=total(temp)
{txt}
{com}. gen percentage=other/alldegrees*100
{txt}(33,920 missing values generated)

{com}. keep if other<.
{txt}(33,920 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,957 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    13.58801    7.353221   1.748252   45.08929
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}13.58801448591824
                {txt}r(Var) =  {res}54.0698583383388
                 {txt}r(sd) =  {res}7.353220949919756
                {txt}r(min) =  {res}1.748251795768738
                {txt}r(max) =  {res}45.08928680419922
                {txt}r(sum) =  {res}1970.262100458145
{txt}
{com}. gen percentage1=r(sum)/145
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    13.42644     9.28562   2.177068   45.08929
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    13.63562    6.728865   1.748252   35.31532
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    13.22193    7.487395   1.748252   45.08929
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    14.88075    6.812218   1.960784   35.31532
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    16.34554     6.17963   3.149606   35.31532
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    11.68945    6.597707   3.789127   29.82456
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    10.69777    6.360216   1.960784    30.9364
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     13.2462    9.114117   1.748252   45.08929
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    15.45929    5.062708   6.779661   25.26882
{txt}
{com}. *apex
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(280 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(280 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(280 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.815047    19.21722          0        100
{txt}
{com}. *top ten
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(1369 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(1,369 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,369 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.339278     10.5717          0         50
{txt}
{com}. *cabinet
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(2981 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(2,981 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,981 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    11.32028    10.38881          0   51.72414
{txt}
{com}. *court 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(1016 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(1,016 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,016 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     1.32436    5.634708          0         50
{txt}
{com}. *MPs
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/edumajor.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) if edumajor1==11
{txt}(26123 missing values generated)

{com}. by country_nid: egen alledu=total(temp)
{txt}
{com}. gen percentage=other/alledu*100
{txt}(26,123 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(26,123 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    15.01295     8.30599   1.276596   53.20513
{txt}
{com}. 
. 
{txt}end of do-file

{com}. do "/Users/erzeno/Dropbox/Beste/Appendix C/TableC4.do"
{txt}
{com}. ///Project: Introducing GLP Paper Table 8 Imputed data
> ///Author: Erzen Oncel 
> ///Date: 31 May 2015 
> ///Stata 13
> 
. 
. *****************************TABLE 8*****************************************
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(occupation1)
{txt}(0 observations deleted)

{com}. count
  {res}40,022
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen alloccp=total(temp)
{txt}
{com}. tab occupation1

     {txt}occupation1 {c |}      Freq.     Percent        Cum.
{hline 17}{c +}{hline 35}
    White Collar {c |}{res}     17,712       44.26       44.26
{txt}     Blue collar {c |}{res}      1,254        3.13       47.39
{txt}       Education {c |}{res}      4,693       11.73       59.11
{txt}        Military {c |}{res}        657        1.64       60.76
{txt}           Media {c |}{res}      1,404        3.51       64.26
{txt}None or Politics {c |}{res}     11,036       27.57       91.84
{txt}           Other {c |}{res}      3,266        8.16      100.00
{txt}{hline 17}{c +}{hline 35}
           Total {c |}{res}     40,022      100.00
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta saved

{com}. count
  {res}40,022
{txt}
{com}. count if power==1
  {res}306
{txt}
{com}. count if power==3
  {res}1,517
{txt}
{com}. count if office1==2
  {res}3,358
{txt}
{com}. count if office1==7
  {res}1,028
{txt}
{com}. count if office1==6
  {res}31,406
{txt}
{com}. count if wealth==0
  {res}29,235
{txt}
{com}. count if wealth==1
  {res}10,787
{txt}
{com}. count if region==1
  {res}8,616
{txt}
{com}. count if region==2
  {res}5,713
{txt}
{com}. count if region==3
  {res}10,360
{txt}
{com}. count if region==4
  {res}11,029
{txt}
{com}. count if region==5
  {res}4,304
{txt}
{com}. count if regime==0
  {res}28,534
{txt}
{com}. count if regime==1
  {res}11,488
{txt}
{com}. tab occupation1

     {txt}occupation1 {c |}      Freq.     Percent        Cum.
{hline 17}{c +}{hline 35}
    White Collar {c |}{res}     17,712       44.26       44.26
{txt}     Blue collar {c |}{res}      1,254        3.13       47.39
{txt}       Education {c |}{res}      4,693       11.73       59.11
{txt}        Military {c |}{res}        657        1.64       60.76
{txt}           Media {c |}{res}      1,404        3.51       64.26
{txt}None or Politics {c |}{res}     11,036       27.57       91.84
{txt}           Other {c |}{res}      3,266        8.16      100.00
{txt}{hline 17}{c +}{hline 35}
           Total {c |}{res}     40,022      100.00
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta", replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta saved

{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta", replace
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(39,877 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(161 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,372 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,213 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(31,261 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(892 observations deleted)

{com}. count
  {res}136
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(29,123 observations deleted)

{com}. count
  {res}112
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,754 observations deleted)

{com}. count
  {res}33
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(28,421 observations deleted)

{com}. count
  {res}113
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(11,456 observations deleted)

{com}. count
  {res}32
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if region==1
{txt}(31,406 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,578 observations deleted)

{com}. count
  {res}38
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if region==2
{txt}(34,309 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,689 observations deleted)

{com}. count
  {res}24
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if region==3
{txt}(29,662 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,334 observations deleted)

{com}. count
  {res}26
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if region==4
{txt}(28,993 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,988 observations deleted)

{com}. count
  {res}41
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if region==5
{txt}(35,718 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,288 observations deleted)

{com}. count
  {res}16
{txt}
{com}. 
. **white collar**
. //descriptive
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==1
{txt}(22,310 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1
{txt}
{com}. gen percentage=whitecol/alloccp*100
{txt}
{com}. collapse (max) percentage, by(country country_nid)
{txt}
{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    49.12971    20.83982   1.363636   94.07895
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}49.12971136816617
                {txt}r(Var) =  {res}434.2979004482576
                 {txt}r(sd) =  {res}20.83981526905307
                {txt}r(min) =  {res}1.363636374473572
                {txt}r(max) =  {res}94.07894897460938
                {txt}r(sum) =  {res}7123.808148384094
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    55.22006    20.71551   1.963746   82.02247
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    47.33523    20.62578   1.363636   94.07895
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    51.47369    20.69167   1.363636   94.07895
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    40.85255    19.48814   9.574468   87.56477
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    39.35069     19.0716   8.333333         80
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    59.70815    20.87738   5.985916   94.07895
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    48.79836    23.04405   1.363636   87.56477
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     54.2057    19.06922   1.963746   82.02247
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    44.01847    15.13979   23.52941   71.32616
{txt}
{com}. //offices
. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. count
  {res}306
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(201 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(201 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(201 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    34.17271    39.04208          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. count
  {res}1,517
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(875 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(875 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(875 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    42.60308    24.97714          0        100
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. count
  {res}3,358
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(1874 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(1,874 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,874 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    45.99125    26.21595          0        100
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. count
  {res}1,028
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(395 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(395 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(395 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     63.8561    40.31284          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. count
  {res}31,406
{txt}
{com}. by country_nid: egen whitecol=total(temp) if occupation1==1 
{txt}(17757 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=whitecol/all*100
{txt}(17,757 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(17,757 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    48.77656    22.22118          0    95.3125
{txt}
{com}. 
. //////////////////////////////////////////////////////////
> **blue collar**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==2 
{txt}(38,768 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen blucol=total(temp)
{txt}
{com}. gen percentage=blucol/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,124 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              15
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              15{txt}  (_merge==2)

{col 5}matched{col 30}{res}             130{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(15 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.258052    4.055967          0   29.75207
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}3.258052326584684
                {txt}r(Var) =  {res}16.45087215956364
                 {txt}r(sd) =  {res}4.055967475160968
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}29.75206565856934
                {txt}r(sum) =  {res}472.4175873547792
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.593717    4.985933          0   18.43318
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    3.159151    3.759201          0   29.75207
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113      3.2034    4.332648          0   29.75207
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    3.451042    2.923487          0   13.87387
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.651548    2.856984          0   13.87387
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.381863    2.384721          0   8.433735
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26     1.85768    1.335312          0   4.854369
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.875329    6.137785          0   29.75207
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     4.33162     4.28399          0   17.38351
{txt}
{com}. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(302 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(302 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(302 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    .6784595    4.819651          0         50
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(1474 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(1,474 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,474 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.877399    5.694128          0         25
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(3298 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(3,298 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,298 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.709469    3.286649          0   16.66667
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(1010 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(1,010 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,010 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    1.316933    4.640732          0   28.57143
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen blucol=total(temp) if occupation1==2
{txt}(30322 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=blucol/all*100
{txt}(30,322 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,322 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.785879    4.905325          0   38.37209
{txt}
{com}. 
. ////////////////////////////////////////////////////////////////
> **education**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==3
{txt}(35,329 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen edu=total(temp) 
{txt}
{com}. gen percentage=edu/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,549 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             144{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(1 real change made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    12.23532    6.430901          0   30.61225
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}12.23532375056168
                {txt}r(Var) =  {res}41.3564904420792
                 {txt}r(sd) =  {res}6.430901215388027
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}30.61224555969238
                {txt}r(sum) =  {res}1774.121943831444
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    10.07918    5.772889          0   23.33333
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    12.87062    6.500365   1.111111   30.61225
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    11.88213    6.389215          0   30.61225
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    13.48254    6.523877   1.554404   25.54348
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    13.91449    6.626794   1.840491   25.73529
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    10.97472     6.35118   1.111111         26
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    10.28909    5.865829   1.554404   25.54348
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    11.43874    6.147526          0   25.97403
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    15.34207    6.359478      3.125   30.61225
{txt}
{com}. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(268 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(268 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(268 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.53456    23.39264          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(1347 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(1,347 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,347 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.63483    11.62461          0         50
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(2884 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(2,884 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,884 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    14.28977    11.96033          0   58.82353
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(882 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(882 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(882 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     10.0158    20.20684          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen edu=total(temp) if occupation1==3
{txt}(27810 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=edu/all*100
{txt}(27,810 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(27,810 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    12.08005      6.8304          0   30.87558
{txt}
{com}. 
. ///////////////////////////////////////////////////////////////
> **media**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==4
{txt}(39,365 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen media=total(temp) 
{txt}
{com}. gen percentage=media/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(535 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              23
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              23{txt}  (_merge==2)

{col 5}matched{col 30}{res}             122{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(23 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.852229    1.535283          0       6.25
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}1.852229133248329
                {txt}r(Var) =  {res}2.357093299939942
                 {txt}r(sd) =  {res}1.535282807804458
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}6.25
                {txt}r(sum) =  {res}268.5732243210077
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.396267    1.564827          0       6.25
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    1.986575    1.507284          0   6.015038
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.737844    1.498712          0       6.25
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32     2.25615    1.617991          0   5.445545
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.291912    1.671189          0   6.015038
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.789866    1.428501          0          5
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    1.488031     1.30727          0   5.445545
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.465309     1.44495          0       6.25
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    2.484831    1.622398          0   5.649717
{txt}
{com}. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(299 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(299 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(299 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.241379    12.50984          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(1492 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(1,492 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,492 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     1.61158    4.264315          0         20
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(3317 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(3,317 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,317 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.165118    2.387717          0   11.76471
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(1024 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(1,024 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,024 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    .8477075       8.622          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen media=total(temp) if occupation1==4
{txt}(30864 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=media/all*100
{txt}(30,864 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,864 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.040191     1.93268          0   8.080808
{txt}
{com}. 
. //////////////////////////////////////////////////////////////
> **military**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==5
{txt}(38,618 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen military=total(temp) 
{txt}
{com}. gen percentage=military/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,277 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              18
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              18{txt}  (_merge==2)

{col 5}matched{col 30}{res}             127{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(18 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.092127    3.101769          0   13.94799
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}3.092126848882642
                {txt}r(Var) =  {res}9.620972428770548
                 {txt}r(sd) =  {res}3.101769241702314
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}13.94799041748047
                {txt}r(sum) =  {res}448.3583930879831
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.109667    1.683239          0   8.290155
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    3.676245    3.186184          0   13.94799
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.308999    2.408356          0   11.92661
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    5.857547    3.688591          0   13.94799
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    4.298317    3.535382   .4739336   13.94799
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    1.712895    1.774774          0   6.666667
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    3.617771    3.029787          0   12.56983
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.456779    1.886508          0   8.290155
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    5.632679    3.241636          0   11.96172
{txt}
{com}. //offices
. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(282 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(282 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(282 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.315569    25.00958          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(1427 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(1,427 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,427 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    5.339896    8.662535          0      43.75
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(3228 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(3,228 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,228 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.242103    5.313033          0   31.42857
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(1013 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(1,013 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,013 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    1.488077    9.108234          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen military=total(temp) if occupation1==5
{txt}(30368 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=military/all*100
{txt}(30,368 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(30,368 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.733771    3.059671          0   11.76471
{txt}
{com}. 
. ///////////////////////////////////////////////////////
> **none of pols**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==6
{txt}(28,986 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen nonepols=total(temp) 
{txt}
{com}. gen percentage=nonepols/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,891 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    23.96971    19.74684   1.470588   98.03625
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}23.9697138515012
                {txt}r(Var) =  {res}389.9376662358546
                 {txt}r(sd) =  {res}19.7468393986444
                {txt}r(min) =  {res}1.470588207244873
                {txt}r(max) =  {res}98.0362548828125
                {txt}r(sum) =  {res}3475.608508467674
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    24.39092    23.69105   3.216374   98.03625
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    23.84561    18.54698   1.470588   88.18182
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113     23.3491     20.6553   1.470588   98.03625
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    26.16127    16.23415   6.217617   86.17021
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    29.24017     21.9112   1.532567   86.17021
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    17.48642    16.05944   1.973684   78.87324
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    26.93264    20.39085   1.470588   88.18182
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     22.6604     21.3826   3.703704   98.03625
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    19.71769    8.641038   5.913979    29.6875
{txt}
{com}. //offices
. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(205 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(205 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(205 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    36.11688    41.37977          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(1076 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(1,076 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,076 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    29.88258     24.4639          0        100
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(2390 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(2,390 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(2,390 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    28.89658    28.02206          0        100
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(898 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(898 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(898 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    16.36747    33.42542          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen nonepols=total(temp) if occupation1==6
{txt}(22564 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=nonepols/all*100
{txt}(22,564 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(22,564 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    24.10282    21.20925          0   99.84424
{txt}
{com}. 
. ////////////////////////////////////////////////////////////////////
> **other**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if occupation1==7
{txt}(36,756 observations deleted)

{com}. sort country_nid
{txt}
{com}. by country_nid: egen other=total(temp) 
{txt}
{com}. gen percentage=other/alloccp*100
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,125 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               4
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               4{txt}  (_merge==2)

{col 5}matched{col 30}{res}             141{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(4 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.462843    5.781879          0   40.78591
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}6.462842647063321
                {txt}r(Var) =  {res}33.43012630124952
                 {txt}r(sd) =  {res}5.78187913236255
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}40.78590774536133
                {txt}r(sum) =  {res}937.1121838241816
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    4.210182     5.84611          0   33.04094
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    7.126573    5.618082          0   40.78591
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    6.044842    5.854735          0   40.78591
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    7.938908    5.344116          0   23.06273
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    7.252873     4.47481          0   16.27907
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    5.946083    6.631629   .3294893   33.04094
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    7.016429    8.655265          0   40.78591
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    4.897743    3.905965          0   17.93249
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    8.472649    5.001931     1.5625   19.63049
{txt}
{com}. //offices
. *apex*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(279 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(279 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(279 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.940439    20.10561          0        100
{txt}
{com}. 
. *top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(1411 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(1,411 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,411 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    7.050637    10.40201          0   66.66666
{txt}
{com}. 
. *cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(3157 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(3,157 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,157 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    4.705703    7.841215          0   52.94118
{txt}
{com}. 
. *court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==7 
{txt}(38,994 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(946 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(946 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(946 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136     6.10792    16.24746          0        100
{txt}
{com}. 
. *mp*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/occupation_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. by country_nid: egen other=total(temp) if occupation1==7
{txt}(28751 missing values generated)

{com}. by country_nid: egen all=total(temp)
{txt}
{com}. gen percentage=other/all*100
{txt}(28,751 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(28,751 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    6.480729    6.275594          0   40.22556
{txt}
{com}. 
. 
. 
. 
. 
. 
. 
{txt}end of do-file

{com}. do "/Users/erzeno/Dropbox/Beste/Appendix C/TableC5.do"
{txt}
{com}. ///Project: Introducing GLP Paper Table 9 Imputeda Data
> ///Author: Erzen Oncel 
> ///Date: 26 March 2015 
> ///Stata 13
> 
. *********************************TABLE 9**************************************
. //1     None
. //2     Trade union (national, supra-national)
. //3     Employer’s organization (national, supra-national)
. //4     Interest group (national, supra-national)
. //5     NGO/Political movement/Governmental intl org
. //6     Local gov/Municipal position
. //7     Party org/admin/youth/ Political advisor
. //8     Previous MP/Minister
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/GLP_mi_15 05 31.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. count
  {res}40,022
{txt}
{com}. tab polexp

                {txt}polexp {c |}      Freq.     Percent        Cum.
{hline 23}{c +}{hline 35}
                  None {c |}{res}      4,039       10.09       10.09
{txt}           Trade Union {c |}{res}      1,049        2.62       12.71
{txt}Employers organization {c |}{res}        745        1.86       14.57
{txt}        Interest Group {c |}{res}      1,534        3.83       18.41
{txt}               NGO/IGO {c |}{res}      3,969        9.92       28.32
{txt}      Local Government {c |}{res}      8,151       20.37       48.69
{txt}           MP/Minister {c |}{res}      8,867       22.16       70.85
{txt}              Partisan {c |}{res}     11,668       29.15      100.00
{txt}{hline 23}{c +}{hline 35}
                 Total {c |}{res}     40,022      100.00
{txt}
{com}. save "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta",replace
{txt}file /Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta saved

{com}. count
  {res}40,022
{txt}
{com}. count if power==1
  {res}306
{txt}
{com}. count if power==3
  {res}1,517
{txt}
{com}. count if office1==2
  {res}3,358
{txt}
{com}. count if office1==7
  {res}1,028
{txt}
{com}. count if office1==6
  {res}31,406
{txt}
{com}. count if wealth==0
  {res}29,235
{txt}
{com}. count if wealth==1
  {res}10,787
{txt}
{com}. count if region==1
  {res}8,616
{txt}
{com}. count if region==2
  {res}5,713
{txt}
{com}. count if region==3
  {res}10,360
{txt}
{com}. count if region==4
  {res}11,029
{txt}
{com}. count if region==5
  {res}4,304
{txt}
{com}. count if regime==0
  {res}28,534
{txt}
{com}. count if regime==1
  {res}11,488
{txt}
{com}. 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta", replace
{txt}
{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(39,877 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(161 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,372 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2
{txt}(36,664 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,213 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6
{txt}(8,616 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(31,261 observations deleted)

{com}. count
  {res}145
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7
{txt}(38,994 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(892 observations deleted)

{com}. count
  {res}136
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if wealth==0
{txt}(10,787 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(29,123 observations deleted)

{com}. count
  {res}112
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if wealth==1
{txt}(29,235 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,754 observations deleted)

{com}. count
  {res}33
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if regime==0
{txt}(11,488 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(28,421 observations deleted)

{com}. count
  {res}113
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if regime==1
{txt}(28,534 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(11,456 observations deleted)

{com}. count
  {res}32
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if region==1
{txt}(31,406 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,578 observations deleted)

{com}. count
  {res}38
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if region==2
{txt}(34,309 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(5,689 observations deleted)

{com}. count
  {res}24
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if region==3
{txt}(29,662 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,334 observations deleted)

{com}. count
  {res}26
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if region==4
{txt}(28,993 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(10,988 observations deleted)

{com}. count
  {res}41
{txt}
{com}. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if region==5
{txt}(35,718 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(4,288 observations deleted)

{com}. count
  {res}16
{txt}
{com}. **None**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(35983 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(35,983 missing values generated)

{com}. keep if none<.
{txt}(35,983 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,896 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               2
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               2{txt}  (_merge==2)

{col 5}matched{col 30}{res}             143{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(2 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.12996    7.894061          0   51.23367
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}10.12995935452395
                {txt}r(Var) =  {res}62.3161929745345
                 {txt}r(sd) =  {res}7.894060613811785
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}51.23367309570313
                {txt}r(sum) =  {res}1468.844106405973
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    10.10145    10.88682   .3072197   51.23367
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    10.13836    6.831804          0     34.375
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    9.574267     8.03933          0   51.23367
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    12.09225    7.131862   2.475248     34.375
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    9.313774    5.826481   2.696079      33.75
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    10.83059    9.993018          0    37.1345
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    12.81209    9.595607   2.475248   51.23367
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41     6.91619    5.372696          0   26.13293
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    14.89427    7.972327    4.83871     34.375
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. count
  {res}306
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(275 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(275 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(275 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    7.049112    19.50387          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. count
  {res}1,517
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(1372 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(1,372 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(1,372 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.246044    13.04568          0         75
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. count
  {res}3,358
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(3027 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(3,027 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(3,027 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.352621    10.52677          0       62.5
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. count
  {res}1,028
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(652 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(652 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(652 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    36.15231    33.08031          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. count
  {res}31,406
{txt}
{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen none=total(temp) if polexp==1
{txt}(28536 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=none/allexp*100
{txt}(28,536 missing values generated)

{com}. replace percentage=0 if missing(percentage)
{txt}(28,536 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    8.944478    8.552541          0   49.77375
{txt}
{com}. 
. /////////////////////////////////////////////////////
> **Trade union**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(38973 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(38,973 missing values generated)

{com}. keep if trade<.
{txt}(38,973 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(917 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              13
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              13{txt}  (_merge==2)

{col 5}matched{col 30}{res}             132{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(13 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.455782    2.007979          0   12.06897
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.455781778282133
                {txt}r(Var) =  {res}4.031980969360076
                 {txt}r(sd) =  {res}2.007979324933421
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}12.06896591186523
                {txt}r(sum) =  {res}356.0883578509092
{txt}
{com}. 
. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33     1.95984    1.637385          0   5.529954
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    2.601908    2.088804          0   12.06897
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    2.335413    2.101311          0   12.06897
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.880834    1.592824          0   7.387387
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    3.182197    2.260283          0   9.569378
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.493218    2.766454          0   12.06897
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    2.132793    1.444364          0   5.496964
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    1.756506    1.500123          0   5.529954
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    2.991143    1.315298   .8960574   5.542725
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(301 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(301 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(301 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     1.44335    9.656248          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(1481 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(1,481 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,481 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.208333    5.386196          0   33.33333
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(3291 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(3,291 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(3,291 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.911647    3.281634          0   16.66667
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(997 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(997 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(997 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    3.602044    13.37064          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen trade=total(temp) if polexp==2
{txt}(30552 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=trade/allexp*100
{txt}(30,552 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(30,552 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.551363    2.739711          0   22.22222
{txt}
{com}. 
. //////////////////////////////
> **Employer's association**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(39277 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(39,277 missing values generated)

{com}. keep if employ<.
{txt}(39,277 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(611 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}              11
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}              11{txt}  (_merge==2)

{col 5}matched{col 30}{res}             134{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(11 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.027492    2.228942          0   21.55477
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}2.027492184269017
                {txt}r(Var) =  {res}4.968183134106188
                 {txt}r(sd) =  {res}2.228942155845725
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}21.55476951599121
                {txt}r(sum) =  {res}293.9863667190075
{txt}
{com}. 
. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    1.027782     .903854          0   3.917526
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     2.32205    2.413508          0   21.55477
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    1.795226    2.279734          0   21.55477
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    2.847682    1.846624   .4901961   8.152174
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    2.592155    3.479494          0   21.55477
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    2.340467    1.546981   .4098361   6.896552
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26     2.29065    1.869911          0   8.152174
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    .9888168     .902262          0   3.703704
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16     2.45093    1.392248   .1792115     4.6875
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(301 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(301 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(301 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.195701    8.924182          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(1482 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(1,482 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,482 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.304115    5.508524          0   44.44444
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(3294 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(3,294 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(3,294 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.799297    3.507928          0   21.73913
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(998 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(998 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(998 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    2.868485     10.3547          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen employ=total(temp) if polexp==3
{txt}(30847 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=employ/allexp*100
{txt}(30,847 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(30,847 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    1.890704     2.20927          0   20.20725
{txt}
{com}. 
. ///////////////////////////////
> **interest group**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(38488 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage= interest/allexp*100
{txt}(38,488 missing values generated)

{com}. keep if interest<.
{txt}(38,488 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(1,396 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               7
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               7{txt}  (_merge==2)

{col 5}matched{col 30}{res}             138{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(7 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    4.051456    3.761116          0   26.31579
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}4.051455729788747
                {txt}r(Var) =  {res}14.14599284432309
                 {txt}r(sd) =  {res}3.76111590413312
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}26.3157901763916
                {txt}r(sum) =  {res}587.4610808193684
{txt}
{com}. 
. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    3.201903    3.915242          0   18.42105
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     4.30177    3.695208          0   26.31579
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    3.729528    3.797285          0   26.31579
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    5.188264    3.450047          0   20.76923
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    4.647682    5.071884          0   26.31579
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    3.829884    3.030504          0   12.90323
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    4.049976    2.108553   .7874016   8.267716
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    3.539854    4.130746          0   18.42105
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    4.281159    1.898581   1.433692   7.352941
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(295 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(295 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(295 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     3.45977    14.72233          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(1476 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(1,476 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,476 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    2.677015     6.24017          0         40
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(3226 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(3,226 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(3,226 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.667657    5.669903          0   42.42424
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(894 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(894 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(894 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    12.18453     21.9368          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen interest=total(temp) if polexp==4
{txt}(30279 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=interest/allexp*100
{txt}(30,279 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(30,279 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    3.667067    3.734886          0         21
{txt}
{com}. 
. ///////////////////////////////
> **NGO**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(36053 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(36,053 missing values generated)

{com}. keep if ngo<.
{txt}(36,053 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(3,825 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             144{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(1 real change made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.78915    10.96689          0   69.07895
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}10.78914969368228
                {txt}r(Var) =  {res}120.2726019278049
                 {txt}r(sd) =  {res}10.96688661051098
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}69.07894897460938
                {txt}r(sum) =  {res}1564.42670558393
{txt}
{com}. gen percentage1=r(sum)/144
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    6.257514    5.620454   .1497006   25.08961
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    12.12436     11.7906          0   69.07895
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    10.92601    12.08498   .1497006   69.07895
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    10.30586    5.542868          0   22.93144
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    14.11087    11.61678          0   65.87678
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    14.89987    18.60613   1.807229   69.07895
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    10.12544    6.121996   2.559055   31.91964
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    5.317395    4.683844   .1497006   21.96532
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    11.83389    5.585663   .9803922   25.08961
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(277 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(277 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(277 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     7.92775    19.35725          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(1374 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(1,374 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,374 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.066041    12.95484          0   63.63636
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(3018 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(3,018 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(3,018 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.47283    12.64513          0         75
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(946 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(946 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(946 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    8.645715    19.58454          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen ngo=total(temp) if polexp==5
{txt}(28289 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=ngo/allexp*100
{txt}(28,289 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(28,289 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    10.79685    11.79933          0     76.259
{txt}
{com}. 
. ///////////////////////////////////////////////////////////////
> **local government**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(31871 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(31,871 missing values generated)

{com}. keep if local<.
{txt}(31,871 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,006 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    18.70267    11.11469   .5988024   60.89109
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}18.70266714877096
                {txt}r(Var) =  {res}123.5364311019233
                 {txt}r(sd) =  {res}11.11469437735124
                {txt}r(min) =  {res}.598802387714386
                {txt}r(max) =  {res}60.89109039306641
                {txt}r(sum) =  {res}2711.886736571789
{txt}
{com}. 
. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    21.55044    12.51817   .5988024   45.68966
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    17.86359     10.5814   1.098901   60.89109
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    18.77889    11.16473   .5988024   53.62694
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    18.43352    11.10847   3.108808   60.89109
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    15.61965    7.041811   3.831418   30.38674
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    22.45712    11.57365   4.347826   47.77778
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    18.96767    12.42955   3.108808   60.89109
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    20.96145    13.62462   .5988024   53.62694
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    14.17438    4.813513   5.197133    24.4898
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(280 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(280 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(280 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145     6.96089    20.12372          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(1353 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(1,353 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,353 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    9.836411     10.8078          0       37.5
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(2959 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(2,959 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,959 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    12.10284    13.84968          0    95.2381
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(913 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(913 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(913 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    9.084397    14.90663          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen local=total(temp) if polexp==6
{txt}(24322 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=local/allexp*100
{txt}(24,322 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(24,322 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    20.90295    12.69274          0   71.71717
{txt}
{com}. 
. /////////////////////////////////////////////////////////////////
> **MP/Minister**
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(31155 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(31,155 missing values generated)

{com}. keep if mpmin<.
{txt}(31,155 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(8,723 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               1
{txt}{col 9}from master{col 30}{res}               0{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             144{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(1 real change made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    21.63325    13.08911          0   66.90141
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}21.63325339853764
                {txt}r(Var) =  {res}171.3248979344019
                 {txt}r(sd) =  {res}13.08911371844564
                {txt}r(min) =  {res}0
                {txt}r(max) =  {res}66.90140533447266
                {txt}r(sum) =  {res}3136.821742787957
{txt}
{com}. 
. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    19.58315    13.50512   .1497006   45.46851
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112     22.2373    12.96384          0   66.90141
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113     20.9091    13.95132          0   66.90141
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    24.19042     9.16283   9.409595   51.79856
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38    23.28987    10.52089   1.532567   51.79856
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    15.52837    14.24503          0   66.90141
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26     23.0473    13.47051   1.306241   49.42197
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    21.06863    14.97629   .1497006   65.61182
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    26.00516    8.288697    6.09319   42.93194
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(220 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(220 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(220 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    29.22556    39.31037          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(1135 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(1,135 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(1,135 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    24.55538    20.77657          0       87.5
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(2364 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(2,364 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,364 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    26.73046    19.19356          0   85.88235
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(871 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(871 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(871 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    17.70703    27.56247          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen mpmin=total(temp) if polexp==7
{txt}(24590 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=mpmin/allexp*100
{txt}(24,590 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(24,590 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    21.15263    14.11013          0   68.42105
{txt}
{com}. 
. /////////////////////////////////////////////////////////////
> //Partisan
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. drop if missing(polexp)
{txt}(0 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(28354 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(28,354 missing values generated)

{com}. keep if partisan<.
{txt}(28,354 observations deleted)

{com}. duplicates drop country_nid, force

{p 0 4}{txt}Duplicates in terms of {res} country_nid{p_end}

{txt}(11,523 observations deleted)

{com}. merge m:1 country_nid using "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Country_list.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               0
{txt}{col 5}matched{col 30}{res}             145{txt}  (_merge==3)
{col 5}{hline 41}

{com}. replace percentage=0 if _merge==2
{txt}(0 real changes made)

{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    30.21024    20.47624   3.193033   96.55688
{txt}
{com}. return list

{txt}scalars:
                  r(N) =  {res}145
              {txt}r(sum_w) =  {res}145
               {txt}r(mean) =  {res}30.21024055645384
                {txt}r(Var) =  {res}419.2762896796978
                 {txt}r(sd) =  {res}20.47623719533689
                {txt}r(min) =  {res}3.193033456802368
                {txt}r(max) =  {res}96.556884765625
                {txt}r(sum) =  {res}4380.484880685806
{txt}
{com}. sum percentage if wealth==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         33    36.31793    22.36262   3.193033   96.55688
{txt}
{com}. sum percentage if wealth==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        112    28.41065    19.63158   3.521127   86.97318
{txt}
{com}. sum percentage if regime==0

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        113    31.95157    21.38253   3.193033   96.55688
{txt}
{com}. sum percentage if regime==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         32    24.06117    15.67346   8.415842   75.53191
{txt}
{com}. sum percentage if region==1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         38     27.2438    21.25418   6.220096   86.97318
{txt}
{com}. sum percentage if region==2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         24    27.62049    17.69269   3.521127   72.45763
{txt}
{com}. sum percentage if region==3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         26    26.57409    18.72172   3.193033   72.02073
{txt}
{com}. sum percentage if region==4

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         41    39.45115    21.90559   4.145078   96.55688
{txt}
{com}. sum percentage if region==5

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}         16    23.36907    15.09039    10.9375   75.62724
{txt}
{com}. *Apex* 
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==1
{txt}(39,716 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(193 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(193 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(193 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    42.73787    43.81435          0        100
{txt}
{com}. 
. *Top ten*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if power==3
{txt}(38,505 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(946 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(946 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(946 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    40.10666    28.05458          0        100
{txt}
{com}. 
. *Cabinet*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==2 
{txt}(36,664 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(2327 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(2,327 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(2,327 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    33.96265    25.14284          0        100
{txt}
{com}. 
. *Court*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==7  
{txt}(38,994 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(925 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(925 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(925 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        136    9.755489     20.0914          0        100
{txt}
{com}. 
. *MPs*
. clear all
{txt}
{com}. use "/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Do-files/imputed_analysis/polexp_mi8.dta"
{txt}
{com}. keep if office1==6 
{txt}(8,616 observations deleted)

{com}. gen temp=1
{txt}
{com}. sort country_nid
{txt}
{com}. by country_nid: egen partisan=total(temp) if polexp==8
{txt}(22427 missing values generated)

{com}. by country_nid: egen allexp=total(temp)
{txt}
{com}. gen percentage=partisan/allexp*100
{txt}(22,427 missing values generated)

{com}. replace percentage=0 if missing(percentage) 
{txt}(22,427 real changes made)

{com}. collapse (max) percentage, by(country_nid)
{txt}
{com}. sum percentage

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}percentage {c |}{res}        145    30.09396    22.42258   2.262444   99.17081
{txt}
{com}. 
. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/erzeno/Dropbox/GLP/JG_EO_Papers/Introducing GLP Paper/Publication/PoP/Submission 2 (Bernhard)/Round 3/Replicationdata/Appendix C/AppendixC.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Oct 2018, 08:32:18
{txt}{.-}
{smcl}
{txt}{sf}{ul off}